package xj.graph2d.app.prop;

import static xj.app.BaseApplicationFrame.getResourceString;

import java.awt.BorderLayout;
import java.awt.GridBagConstraints;

import javax.swing.JLabel;
import javax.swing.JPanel;

import xj.graph2d.app.DrawApp;

public class UMLNotesModelPane extends PropertiesPane {

  public UMLNotesModelPane(DrawApp main) {
    super(main);

    notesText = new ModelPropertiesPane.TextField("text");
    JPanel panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.add(notesText.getEditor(), BorderLayout.CENTER);
    //TitledBorder border = BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Notes");
    //Border border = BorderFactory.createEtchedBorder();
    //panel.setBorder(border);
    JLabel title = new JLabel(getResourceString("Notes.text"));
    panel.add(title, BorderLayout.NORTH);
    addRow(null, panel, notesText, GridBagConstraints.WEST);

    // addRow(notesText);
    addFiller();
  }

  protected ModelPropertiesPane.TextField notesText;

}
